package com.ourteam.product.model.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:01:08
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class ProductModelServiceTemplateItemDAOQueryBean extends BaseQueryBean {
    public ProductModelServiceTemplateItemDAOQueryBean() {
        super();
    }

    public ProductModelServiceTemplateItemDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public ProductModelServiceTemplateItemDAOQueryBean(
        BaseQueryBean aQueryBean, Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelServiceTemplateItemDAO.Id, aAlias);
        } else {
            addSelectProperty(IProductModelServiceTemplateItemDAO.Id, "id");
        }
    }

    public void addServiceTemplateIdSelectProperty() {
        addServiceTemplateIdSelectProperty("serviceTemplateId");
    }

    public void addServiceTemplateIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelServiceTemplateItemDAO.ServiceTemplateId,
                aAlias);
        } else {
            addSelectProperty(IProductModelServiceTemplateItemDAO.ServiceTemplateId,
                "serviceTemplateId");
        }
    }

    public void addTemplateItemNameSelectProperty() {
        addTemplateItemNameSelectProperty("templateItemName");
    }

    public void addTemplateItemNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelServiceTemplateItemDAO.TemplateItemName,
                aAlias);
        } else {
            addSelectProperty(IProductModelServiceTemplateItemDAO.TemplateItemName,
                "templateItemName");
        }
    }

    public void addServiceNameTemplateSelectProperty() {
        addServiceNameTemplateSelectProperty("serviceNameTemplate");
    }

    public void addServiceNameTemplateSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelServiceTemplateItemDAO.ServiceNameTemplate,
                aAlias);
        } else {
            addSelectProperty(IProductModelServiceTemplateItemDAO.ServiceNameTemplate,
                "serviceNameTemplate");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelServiceTemplateItemDAO.Status, aAlias);
        } else {
            addSelectProperty(IProductModelServiceTemplateItemDAO.Status,
                "status");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelServiceTemplateItemDAO.Remarks,
                aAlias);
        } else {
            addSelectProperty(IProductModelServiceTemplateItemDAO.Remarks,
                "remarks");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addServiceTemplateIdSelectProperty();

        addTemplateItemNameSelectProperty();

        addServiceNameTemplateSelectProperty();

        addStatusSelectProperty();

        addRemarksSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<ProductModelServiceTemplateItemDAOQueryBean> {
        protected Criteria(
            ProductModelServiceTemplateItemDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.Id +
                " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(IProductModelServiceTemplateItemDAO.Id +
                " is not null AND " + IProductModelServiceTemplateItemDAO.Id +
                " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + IProductModelServiceTemplateItemDAO.Id +
                " is null OR " + IProductModelServiceTemplateItemDAO.Id +
                " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " = ", value,
                "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " <>", value,
                "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id +
                " is null OR " + IProductModelServiceTemplateItemDAO.Id +
                " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " >", value,
                "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " >=", value,
                "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " <", value,
                "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " <=", value,
                "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Id + " in",
                    values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Id +
                    " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Id + " in",
                    values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Id +
                    " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Id +
                    " not in", Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " between",
                value1, value2, "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id + " between",
                value1, value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id +
                " not between", value1, value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Id +
                " not between", value1, value2, "id");

            return this;
        }

        public Criteria andServiceTemplateIdIsNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " is null");

            return this;
        }

        public Criteria andServiceTemplateIdIsNotNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " is not null");

            return this;
        }

        public Criteria andServiceTemplateIdIsNotEmpty() {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " is not null AND " +
                IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " <> ''");

            return this;
        }

        public Criteria andServiceTemplateIdIsEmpty() {
            addCriterion("(" +
                IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " is null OR " +
                IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " = '')");

            return this;
        }

        public Criteria andServiceTemplateIdEqualTo(long value) {
            return andServiceTemplateIdEqualTo(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdEqualTo(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " = ", value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceTemplateId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceTemplateIdEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdNotEqualTo(long value) {
            return andServiceTemplateIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " <>", value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdNotEqualToOrIsNull(long value) {
            return andServiceTemplateIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " is null OR " +
                IProductModelServiceTemplateItemDAO.ServiceTemplateId + " <>",
                value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceTemplateId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceTemplateIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdGreaterThan(long value) {
            return andServiceTemplateIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " >", value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceTemplateId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceTemplateIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdGreaterThanOrEqualTo(long value) {
            return andServiceTemplateIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " >=", value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceTemplateId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceTemplateIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdLessThan(long value) {
            return andServiceTemplateIdLessThan(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdLessThan(java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " <", value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceTemplateId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceTemplateIdLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdLessThanOrEqualTo(long value) {
            return andServiceTemplateIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andServiceTemplateIdLessThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " <=", value, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceTemplateId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceTemplateIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdIn(long[] values) {
            if (values.length == 1) {
                return andServiceTemplateIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                    " in", values, "serviceTemplateId");

                return this;
            }
        }

        public Criteria andServiceTemplateIdNotIn(long[] values) {
            if (values.length == 1) {
                return andServiceTemplateIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                    " not in", values, "serviceTemplateId");

                return this;
            }
        }

        public Criteria andServiceTemplateIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andServiceTemplateIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                    " in", values, "serviceTemplateId");

                return this;
            }
        }

        public Criteria andServiceTemplateIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andServiceTemplateIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                    " not in", values, "serviceTemplateId");

                return this;
            }
        }

        public Criteria andServiceTemplateIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andServiceTemplateIdEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                    " in", Arrays.asList(values), "serviceTemplateId");

                return this;
            }
        }

        public Criteria andServiceTemplateIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andServiceTemplateIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                    " not in", Arrays.asList(values), "serviceTemplateId");

                return this;
            }
        }

        public Criteria andServiceTemplateIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceTemplateIdBetween(long value1, long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " between", value1, value2, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " between", value1, value2, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdNotBetween(long value1, long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " not between", value1, value2, "serviceTemplateId");

            return this;
        }

        public Criteria andServiceTemplateIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceTemplateId +
                " not between", value1, value2, "serviceTemplateId");

            return this;
        }

        public Criteria andTemplateItemNameIsNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " is null");

            return this;
        }

        public Criteria andTemplateItemNameIsNotNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " is not null");

            return this;
        }

        public Criteria andTemplateItemNameIsNotEmpty() {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " is not null AND " +
                IProductModelServiceTemplateItemDAO.TemplateItemName +
                " <> ''");

            return this;
        }

        public Criteria andTemplateItemNameIsEmpty() {
            addCriterion("(" +
                IProductModelServiceTemplateItemDAO.TemplateItemName +
                " is null OR " +
                IProductModelServiceTemplateItemDAO.TemplateItemName +
                " = '')");

            return this;
        }

        public Criteria andTemplateItemNameEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " = ", value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.TemplateItemName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andTemplateItemNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameNotEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " <>", value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " is null OR " +
                IProductModelServiceTemplateItemDAO.TemplateItemName + " <>",
                value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.TemplateItemName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andTemplateItemNameNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameGreaterThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " >", value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.TemplateItemName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andTemplateItemNameGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " >=", value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.TemplateItemName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andTemplateItemNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameLessThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " <", value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.TemplateItemName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andTemplateItemNameLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameLessThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " <=", value, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.TemplateItemName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andTemplateItemNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " like", buffer.toString(), "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " not like", buffer.toString(), "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameIn(List<String> values) {
            if (values.size() == 1) {
                return andTemplateItemNameEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                    " in", values, "templateItemName");

                return this;
            }
        }

        public Criteria andTemplateItemNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andTemplateItemNameNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                    " not in", values, "templateItemName");

                return this;
            }
        }

        public Criteria andTemplateItemNameIn(String[] values) {
            if (values.length == 1) {
                return andTemplateItemNameEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                    " in", Arrays.asList(values), "templateItemName");

                return this;
            }
        }

        public Criteria andTemplateItemNameNotIn(String[] values) {
            if (values.length == 1) {
                return andTemplateItemNameNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                    " not in", Arrays.asList(values), "templateItemName");

                return this;
            }
        }

        public Criteria andTemplateItemNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andTemplateItemNameBetween(String value1, String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " between", value1, value2, "templateItemName");

            return this;
        }

        public Criteria andTemplateItemNameNotBetween(String value1,
            String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.TemplateItemName +
                " not between", value1, value2, "templateItemName");

            return this;
        }

        public Criteria andServiceNameTemplateIsNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " is null");

            return this;
        }

        public Criteria andServiceNameTemplateIsNotNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " is not null");

            return this;
        }

        public Criteria andServiceNameTemplateIsNotEmpty() {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " is not null AND " +
                IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <> ''");

            return this;
        }

        public Criteria andServiceNameTemplateIsEmpty() {
            addCriterion("(" +
                IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " is null OR " +
                IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " = '')");

            return this;
        }

        public Criteria andServiceNameTemplateEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " = ", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceNameTemplate);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceNameTemplateEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateNotEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <>", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " is null OR " +
                IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <>", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceNameTemplate);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceNameTemplateNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateGreaterThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " >", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceNameTemplate);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceNameTemplateGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " >=", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceNameTemplate);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceNameTemplateGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateLessThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceNameTemplate);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceNameTemplateLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateLessThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <=", value, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.ServiceNameTemplate);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andServiceNameTemplateLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " like", buffer.toString(), "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " not like", buffer.toString(), "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateIn(List<String> values) {
            if (values.size() == 1) {
                return andServiceNameTemplateEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                    " in", values, "serviceNameTemplate");

                return this;
            }
        }

        public Criteria andServiceNameTemplateNotIn(List<String> values) {
            if (values.size() == 1) {
                return andServiceNameTemplateNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                    " not in", values, "serviceNameTemplate");

                return this;
            }
        }

        public Criteria andServiceNameTemplateIn(String[] values) {
            if (values.length == 1) {
                return andServiceNameTemplateEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                    " in", Arrays.asList(values), "serviceNameTemplate");

                return this;
            }
        }

        public Criteria andServiceNameTemplateNotIn(String[] values) {
            if (values.length == 1) {
                return andServiceNameTemplateNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                    " not in", Arrays.asList(values), "serviceNameTemplate");

                return this;
            }
        }

        public Criteria andServiceNameTemplateIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateNotIn(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andServiceNameTemplateBetween(String value1,
            String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " between", value1, value2, "serviceNameTemplate");

            return this;
        }

        public Criteria andServiceNameTemplateNotBetween(String value1,
            String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.ServiceNameTemplate +
                " not between", value1, value2, "serviceNameTemplate");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " is not null AND " +
                IProductModelServiceTemplateItemDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + IProductModelServiceTemplateItemDAO.Status +
                " is null OR " + IProductModelServiceTemplateItemDAO.Status +
                " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " = ",
                value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " <>",
                value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " is null OR " + IProductModelServiceTemplateItemDAO.Status +
                " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " >",
                value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " >=",
                value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " <",
                value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " <=",
                value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " not like", buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Status +
                    " in", values, "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Status +
                    " not in", values, "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Status +
                    " in", Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Status +
                    " not in", Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " between", value1, value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Status +
                " not between", value1, value2, "status");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " is not null AND " +
                IProductModelServiceTemplateItemDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + IProductModelServiceTemplateItemDAO.Remarks +
                " is null OR " + IProductModelServiceTemplateItemDAO.Remarks +
                " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " = ",
                value, "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " <>",
                value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " is null OR " + IProductModelServiceTemplateItemDAO.Remarks +
                " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " >",
                value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " >=",
                value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " <",
                value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " <=",
                value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelServiceTemplateItemDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " not like", buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                    " in", values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                    " not in", values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                    " in", Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                    " not in", Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " between", value1, value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(IProductModelServiceTemplateItemDAO.Remarks +
                " not between", value1, value2, "remarks");

            return this;
        }
    }
}
